package com.ruoyi.system.domain.dto;

import com.ruoyi.common.core.page.PageQuery;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author wux
 * @date 2023/5/11 9:24
 */
@Data
public class SysAdminUserDTO {
    @ApiModelProperty(value = "id")
    private Long id;
    @ApiModelProperty(value = "账号")
    @NotBlank
    private String account;
    @ApiModelProperty(value = "姓名")
    @NotBlank
    private String name;
    @ApiModelProperty(value = "手机号码")
    @NotBlank
    private String phone;
    @ApiModelProperty(value = "密码")
    @NotBlank
    private String password;
    @ApiModelProperty(value = "生产线编码")
    @NotBlank
    private String lineCode;
    @ApiModelProperty(value = "帐号状态（0正常 1停用）")
    @NotNull
    private Integer status;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "项目id集合")
    List<Long> projectIdList;

    @Data
    public static class AdminUserSelectDTO extends PageQuery {
        @ApiModelProperty(value = "账号")
        private String account;
        @ApiModelProperty(value = "姓名")
        private String name;
        @ApiModelProperty(value = "手机号码")
        private String phone;
        @ApiModelProperty(value = "帐号状态（0正常 1停用）")
        private Integer status;
        @ApiModelProperty(value = "项目名称")
        private String projectName;
    }

}
